<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset=UTF-8>
<title>客户管理系统</title>
<base href="<%=basePath%>">
<link rel="stylesheet" type="text/css"
	href="bootstrap-rs/themes/black/easyui.css">
<link rel="stylesheet" type="text/css"
	href="bootstrap-rs/themes/icon.css">
<link rel="stylesheet" type="text/css" href="bootstrap-rs/demo.css">
<script type="text/javascript" src="bootstrap-rs/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap-rs/jquery.easyui.min.js"></script>
</head>
<body>
	<form class="form-inline definewidth m20"
		action="sys/data/save" id="pager" method="post">
		<a>数据字典添加</a><br>
		字典名称:<input type="text" name="name"><br>
		所属父类: <select name="fid">
			<option value="0">请选择</option>
			<c:forEach items="${fathers }" var="b">
				<c:if test="${b.fid eq 0 }">
					<option value="${b.id }">${b.name }</option>
				</c:if>
			</c:forEach>
		</select> <br>


		<button type="submit" class="btn btn-primary">提交</button>
		&nbsp;&nbsp;
		<button type="button" class="btn btn-success" id="back">返回列表</button>
	</form>
	
</body>
<script>

	$(function() {
		$('#back').click(function() {
			window.location.href = "sys/data/query";
		});
	});
	
</script>

</html>